package ij.hkust.gui.laserCtr;

import ij.plugin.PlugIn;
import ij.umasuo.Test;

/**
 * no use
 * @author liuquan
 *
 */
public class CtrStarter  implements PlugIn {

	@Override
	public void run(String arg) {

//		LaserCtrChooser.instance.show();
//		IJ.run("Image Sequence...", "open=G:\\work\\hk-ust\\document\\data\\Rawdata\\0.tif"+" starting=170 increment=1 scale=100 file=[.tif] or=[] sort use");
		
//		ImagePlus ip = new ImagePlus("G:\\work\\hk-ust\\document\\data\\Rawdata\\1.tif");
//		ImageCanvas ic = new ImageCanvas(ip);
//		ImageWindow iw = new ImageWindow(ip,ic);
////		ImageWindow iw = new ImageWindow("test");
//		
////		iw.setTitle("test");
//		ic.setLocation(0, 0);
//		ic.setSize(ip.getImage().getWidth(null), ip.getImage().getHeight(null));
//		iw.setSize(ip.getImage().getWidth(null), ip.getImage().getHeight(null));
//		iw.setLocation(300, 300);
//		iw.setImage(ip);
//		iw.show();
//		try {
//			Thread.sleep(5000);
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
//		ImagePlus ip2 = new ImagePlus("G:\\work\\hk-ust\\document\\data\\Rawdata\\pausedata\\ALL0001\\F0001TEK.BMP");
//		
//		iw.setImage(ip2);
		
//		WorkingWin3D.instance.show();
		
//		ResultSettingWin tmp = new ResultSettingWin();
//		tmp.show();
//		Reconstruct_Dataset ttt = new Reconstruct_Dataset();
//		ttt.run("");
//		TestMain tt = new TestMain();
//		tt.show();
		
		
//		
//		System.out.println(IJ.getDirectory("imageJ"));
//		System.out.println(Prefs.getHomeDir());
//		
//		AOTFClient client = AOTFClient.instants;
//		if(client != null){
//			IJ.log("I have open the AOTF~~~");
//			client.Write("dau dis\r");
//			client.Write("dau en\r");
//			client.Write("dau gain * 255\r");
//			client.Write("dds a 0 2000\r");
//			client.Write("dds a 1 2000\r");
//			client.Write("dds a 2 2000\r");
//			client.Write("dds a 3 2000\r");
//			client.Write("dds a 4 2000\r");
//			client.Write("dds a 5 2000\r");	
//		}else{
//			IJ.log("no~~~~~~~~~~~~~~~~~~~~~~");
//		}
		
//		Slides3D test3DSlieds = new Slides3D();
//		test3DSlieds.show3DView();
		Test.test();
		
//		Thread thread = new Thread(new Runnable(){//start a new thread to invoke the plugin
//			@Override
//			public void run() {
//				IJ.runPlugIn("CameraPlugin", "asdasdas");//this is a block method
//			}
//		});
//		thread.start();
		
//		MyConstants.cameraCtr.hideWin();
	}

}
